class Solution {
    public boolean judgeCircle(String moves) {
       int about1 = 0 ;
       int about2 = 0 ; 
       for(int i = 0 ; i< moves.length() ; i++){
           char ch = moves.charAt(i) ;
           switch(ch){
               case 'U': about1 ++ ;
               break ;
              case 'D': about1 -- ;
               break ;
               case 'R': about2 ++ ;
               break ;
               case 'L': about2 -- ;
               break ;
           }
       }
       return about1 == 0 && about2 == 0  ;
    }
}